//
//  YZSettingCell.m
//  VET
//
//  Created by 刘文靖 on 2018/6/29.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import "YZSettingCell.h"
#import "YZSettingItem.h"
@interface YZSettingCell ()
@property (weak, nonatomic) IBOutlet UILabel *optionLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomLineHeightConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomLineLeadingConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomLineTrailing;
@property (weak, nonatomic) IBOutlet UIView *bottomLineView;
@end
@implementation YZSettingCell

- (void)setItem:(YZSettingItem *)item{
    _item = item;
    self.optionLabel.text = item.optionName;
    self.bottomLineHeightConstraint.constant = item.bottomLineHeight;
    if (item.bottomLineHeight > 1) {
        self.bottomLineView.backgroundColor = kColorWithHex(0xF6F6F6);
        self.bottomLineTrailing.constant = 0;
        self.bottomLineLeadingConstraint.constant = 0;
    }
}

@end
